import myRequest from './index';

export const getAdListApi = (data: any) => {
  return myRequest<any>('/admin_api/advertisement/list', {
    method: 'POST',
    data,
  });
};

export const saveAdApi = (data: any) => {
  return myRequest<any>('/admin_api/advertisement/insert_or_update', {
    method: 'POST',
    data,
  });
};
